vcGeometryContainer
vcGeometryContainer is a container used to store all types of geometry sets for nodes and Geometry features.
See in: Overview
Module: vcGeometry
Parent: vcObject
Children -
Referenced by: vc3DIcon.Geometry, vcGeometryFeature.Geometry, vcGeometrySet.Container, vcNode.Geometry, ... (see more)
vc3DIcon.Geometry
vcGeometryFeature.Geometry
vcGeometrySet.Container
vcNode.Geometry
vcNode.UserGeometry
Properties
Learn how to use properties here. The properties are also inherited from the parent class.
| Name | Type | Access | Description |
| BoundingBox | vcBoundingBox | R | Gets an axis-aligned bounding box. |
| GeometrySetCount | Integer | R | Gets the amount of geometry sets in the container. |
| GeometrySets | vcList[vcGeometrySet] | R | Gets a list of geometry sets in the container. |
Methods
Learn how to use methods here. The methods are also inherited from the parent class.
| Name | Return Type | Parameters | Description |
| clear | None | None | Removes all geometry sets from the container. |
| cloneGeometrySets | None | vcGeometryContainer geometryContainer, Optional Keyword[offset = vcMatrix] | Copies all geometry sets in the container to a given container. An optional offset argument can be given to offset the copied geometry, thereby making it easier to distinguish the original from its copy. In this case, geometry is shared between both containers.See moreParameters: container (vcGeometryContainer) : Copy target, offset (vcMatrix): Offset to use when copying. Exceptions: LicenseError: No license for Modeling API. |
| createGeometrySet | vcObject | vcGeometrySetType arg | Creates a new geometry set of a given type in the container. See Geometry Constants for more information.See moreParameters: type (Enumeration): The type of geometry set to create. Exceptions: LicenseError: No license for Modeling API. ValueError: Unsupported geometry set type. Returns: vcGeometrySet |
| getGeometrySet | vcGeometrySet | Integer index | Gets a geometry set at a given index in the container.See moreParameters: index (int): The index of the geometry set to retrieve. Exceptions: IndexError: Index out of bounds. Returns: GeometrySet (vcGeometrySet): The geometry set at the specified index. |
| moveGeometrySets | None | vcGeometryContainer targetContainer, Optional Keyword[offset = vcMatrix] | Moves all geometry sets in the container to a given container.See moreParameters: targetContainer (vcGeometryContainer): The target container to move the geometry sets to. offset (vcMatrix): An optional offset argument to apply to the moved geometry. Exceptions: LicenseError: No license for Modeling API. |
| setModified | None | None | Marks the geometry of the container as modified, thereby alerting the application that changes need to be saved to file. |
| transformContent | None | vcMatrix matrix | Transforms all geometry sets of the container by the given matrix. Parameters: matrix (vcMatrix): The transformation matrix to apply. |
| update | None | None | Updates the bound box of container. |